﻿using System.Collections.Generic;

namespace ViewModels
{
    public class OutPut
    {
        /// <summary>
        /// 输出状态200：成功 301：无数据 401：提示错误信息 500接口调用异常
        /// </summary>
        public string ResultStatus { get; set; }
        /// <summary>
        /// 输出信息提示
        /// </summary>
        public string Msg { get; set; }
        /// <summary>
        /// 输出的数据列表
        /// </summary>
        public List<object> ResultData { get; set; }
        /// <summary>
        /// 记录流水号
        /// </summary>
        public string RecordSn { get; set; }
        ///// <summary>
        ///// 当前页数
        ///// </summary>
        //public int Page { get; set; }
        ///// <summary>
        ///// 当前总页数
        ///// </summary>
        //public int Sum { get; set; }
    }
    public class YBOutPut<P> where P : class
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// 响应信息
        /// </summary>
        public string Msg { get; set; }

        /// <summary>
        /// 响应结果
        /// </summary>
        public P ResultData { get; set; }

        /// <summary>
        /// 响应总数
        /// </summary>
        public int TotalCount { get; set; }
    }

    public class SpellModel
    {
        /// <summary>
        /// 拼音首字母
        /// </summary>
        public string Abbr { get; set; }

        /// <summary>
        /// 五笔码
        /// </summary>
        public string Costa { get; set; }
    }
    public class ReturnObj
    {
        public string Result { get; set; }

        public int Code { get; set; }
    }
}
